<%@ page language="java"  %>
<%@ taglib uri="/struts-tags"  prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>welcome</title>
<script type="text/javascript" src="scripts/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="scripts/welcome.js"></script>
<script type="text/javascript" src="scripts/welcome_ajax.js"></script>
</head>
<body>
	查询是否存在
	<input id="user_userId" type="text" name="user.userId">
	<input type="button" value="查询" onclick="checkUserIfExists();">
	<input type="text" onblur="check(this.value)">
	<form action="homeAction!addUser" method="post">
		<input id="entity.userName" type="text" name="user.userName">
		<input id="entity.userAge" type="text" name="user.userAge">
		<input type="submit" value="添加">
	</form>

	<font id="message" color="red"></font>
	<s:property value="#request.message"/>
	<a href="homeAction!findUsers">查询</a>
	
	<table>
		<s:iterator value="#request.userList" >
			<tr id="tr_<s:property value="userId"/>">
				<td><s:property value="userId"/></td>
				<td><s:property value="userName"/></td>
				<td><s:property value="userAge"/></td>
				<td><a href="javascript:0" onclick="del(<s:property value="userId"/>)">删除</a></td>
			</tr>
		</s:iterator>
	</table>
	<script type="text/javascript">
		var url="http://www.baidu.com";
		document.write("<a href="+url+">百度</a>");
	</script>
	<div id="div_input">
		<input type="button" onclick="input();" value="点我input">
		<input type="button" onclick="confirmit();" value="点我confirm">
		<input type="button" onclick="checkthis(this);" value="点我this">
		<input type="button" onclick="forin(this);" value="点我forin">
	</div>
	<!-- <img alt="截图" src="images/jt.png" style="FILTER :wave(strength=1)" onfilterchange=handlechange(this)> -->
</body>
</html>